import request from '@/utils/request'

// 查询公摊报表列表
export function listPublicShareComsumeReport(query) {
  return request({
    url: '/datastatistics/publicShareComsumeReport/list',
    method: 'get',
    params: query
  })
}

// 查询公摊报表详细
export function getPublicShareComsumeReport(id) {
  return request({
    url: '/datastatistics/publicShareComsumeReport/' + id,
    method: 'get'
  })
}

// 新增公摊报表
export function addPublicShareComsumeReport(data) {
  return request({
    url: '/datastatistics/publicShareComsumeReport',
    method: 'post',
    data: data
  })
}

// 修改公摊报表
export function updatePublicShareComsumeReport(data) {
  return request({
    url: '/datastatistics/publicShareComsumeReport',
    method: 'put',
    data: data
  })
}

// 删除公摊报表
export function delPublicShareComsumeReport(id) {
  return request({
    url: '/datastatistics/publicShareComsumeReport/' + id,
    method: 'delete'
  })
}



  // 查询公摊报表-用户明细
export function selectConsumeReportList(query) {
  return request({
    url: '/datastatistics/publicShareComsumeReport/selectConsumeReportList',
    method: 'get',
    params: query
  })
}

// 查询公摊报表列表-开账记录
export function publicShareListForBill(query) {
  return request({
    url: '/datastatistics/publicShareComsumeReport/publicShareListForBill',
    method: 'get',
    params: query
  })
}